package com.zy.bean4.dao;


import org.springframework.stereotype.Repository;

@Repository
public class ProductDaoCacheDao implements ProductDao {
    @Override
    public void add(String pname, double price) {
        System.out.println("缓存增加"+pname+","+price);
    }

    @Override
    public void update(String pname, double price) {
        System.out.println("缓存修改"+pname+","+price);
    }

    @Override
    public double findPrice(String pname) {
        System.out.println("缓存查询"+pname);
        return 59.0;
    }
}
